home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
EBKSRC.ARJ
/
EB4.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-30
|
1KB
|
94 lines
/*
eb4.hpp
7-30-91
Electronic Book: header for eb4.cpp
Copyright 1991
John W. Small
All rights reserved
PSW / Power SoftWare
P.O. Box 10072
McLean, Virginia 22102 8072 USA
John Small
Voice: (703) 759-3838
CIS: 73757,2233
*/
#ifndef EB4_HPP
#define EB4_HPP
#ifndef FLEXLIST_CPP
#include <flexlist.hpp>
#endif
#ifndef EB1_HPP
#include <eb1.hpp>
#endif
#ifndef EB2_HPP
#include <eb2.hpp>
#endif
#ifndef EB3_HPP
#include <eb3.hpp>
#endif
/*
The Arguments class is a FlexList for vectorizing
a string of arguments. It is used in the spawn
call of HyperView::view().
*/
class Arguments : FlexList {
char buf[MAX_ARG_LEN];
char ** V;
public:
Arguments(const char * A);
unsigned argc() { return (V? Nodes() : 0); }
char * argv0() { return (V? V[0] : (char *)0); }
char ** argv() { return V; }
~Arguments() { delete V; }
};
typedef Arguments *ArgumentS;
#define ArgumentS0 ((ArgumentS)0)
/*
The HyperView is the user inteface to EB's hypertext
engine.
*/
class HyperView {
HyperStack hstk;
HyperContexT HC;
HyperServer hser;
PickTOC TOC;
PickIDX IDX;
public:
HyperView() : hstk(), hser()
{
HC = HyperContexT0;
TOC = PickTOC0;
IDX = PickIDX0;
}
int view(const char * hyperFname = (char *)0,
const char * topic = (char *)0);
~HyperView();
};
#endif